<template>
    <div class="header">
        <!-- 折叠按钮 -->
        <!-- <div class="collapse-btn">
            <img src="~IMAGES/logo.png" alt="" style="margin-top:10px;width:50px;height:50px;">
        </div> -->
        <div class="logo">后台系统平台</div>
        <div class="header-right">
            <div class="header-user-con">
              <img src="~IMAGES/loginOut.png" style="cursor: pointer;" alt="退出" @click="logout">
            </div>
        </div>
    </div>
</template>
<script>
import { URL, api } from "API";

export default {
  data() {
    return {
      collapse: false
    };
  },
  computed: {},
  methods: {
    logout() {
      localStorage.removeItem('TOKEN');
      this.$router.replace('/login');
    }
  }
};
</script>
<style scoped>
.header {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 70px;
  font-size: 22px;
  color: #fff;
  background-color: #409eff;
}

.collapse-btn {
  float: left;
  padding: 0 28px;
  /* line-height: 70px; */
}

.header .logo {
  float: left;
  width: 250px;
  line-height: 70px;
  padding-left: 20px;
}

.header-right {
  float: right;
  padding-right: 50px;
}

.header-user-con {
  display: flex;
  height: 70px;
  align-items: center;
}

.user-name {
  margin-left: 10px;
}

.user-avator {
  margin-left: 20px;
}

.user-avator img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.el-dropdown-link {
  color: #fff;
  cursor: pointer;
}
</style>
